interface TableData {
    id: number,
    title: string,
    address: string,
    score?: number,
    score_count?: number,
    price: number,
    image?: string,
    image_list?: any[],
    hot?:number,
    status:number,
    sort?:number,
    createTime:string,
    updateTime?:string,
}

export const tableData: TableData[] = [
    {
        id: 1,
        title: '独特设计的有机自然住宅，离网',
        address: '瑞典 · 西约特兰省',
        price:99.9,
        score:5,
        score_count:900,
        hot:1,
        status: 1,
        sort: 1,
        image:"https://z1.muscache.cn/im/pictures/miso/Hosting-576599054777073307/original/53e611cc-b827-4cec-850e-c1db1274de43.jpeg?im_w=720",
        image_list:[
            {
            img:"https://z1.muscache.cn/im/pictures/miso/Hosting-576599054777073307/original/53e611cc-b827-4cec-850e-c1db1274de43.jpeg?im_w=720"
        },
        {
            img:"https://z1.muscache.cn/im/pictures/miso/Hosting-576599054777073307/original/f288503b-fdad-4113-85f1-513697bd2698.jpeg?im_w=720"
        },
        {
            img:"https://z1.muscache.cn/im/pictures/miso/Hosting-576599054777073307/original/93d7e82d-3bf8-4236-87b2-27369f4ccbd4.jpeg?im_w=720"
        },
        {
            img:"https://z1.muscache.cn/im/pictures/miso/Hosting-576599054777073307/original/4bea3adf-5d39-4ec6-9358-a4381ec4dbe8.jpeg?im_w=1200"
        }
    ],
        createTime:'2023-10-13',
        updateTime:'2023-10-14',
    } 
]

interface TableList {
    prop?: string;
    label?: string;
    // 固定 接收 left right
    fixed?: string;
    width?: number;
    // 插槽按钮
    switch?:boolean,
    // 插槽缩略图
    img?:boolean
    // 显示排序
    sortable?:boolean
}

export const tableList: TableList[] = [
    {
        prop: 'id',
        label: '序号',
        width: 100,
    },
    {
        prop: 'image',
        label: '缩略图',
        img:true
    },
    {
        prop: 'title',
        label: '标题',
    },
    {
        prop: 'address',
        label: '地址',
     
    },
     {
        prop: 'score',
        label: '星级',
     
    },
    {
        prop: 'score_count',
        label: '点赞数',
    
    },
    {
        prop: 'price',
        label: '价格',
        sortable:true
    },
    {
        prop: 'hot',
        label: '推荐',
    },
    {
        prop: 'sort',
        label: '排序',
        sortable:true
    },
    {
        prop: 'status',
        label: '状态',
        switch:true
    },
    {
        prop: 'createTime',
        label: '更新时间',
        sortable:true
    },
    {
        prop: 'updateTime',
        label: '更新时间',
        sortable:true
    },
];
